package com.qny.ai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName("message")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Message {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("conversation_id")
    private Long conversationId;

    private String content;

    @TableField("original_content")
    private String originalContent;

    private String language;

    @TableField("is_user_message")
    private Integer isUserMessage;

    private String emotion;

    @TableField("audio_url")
    private String audioUrl;

    @TableField("timestamp")
    private LocalDateTime timestamp;
}


